Skip to content

Make (unstable API) UniqueRc invariant for soundness #135379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

steffahn
Copy link
Member

Add test case from #133572 (comment) (comment in review of UniqueArc), and fix the issue for UniqueRc.

@rustbot
Copy link
Collaborator

rustbot commented Jan 11, 2025

r? @estebank

rustbot has assigned @estebank.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jan 11, 2025
@rust-log-analyzer

This comment has been minimized.

@compiler-errors
Copy link
Member

lol, triagebot auto-rolled someone from compiler bc of the ui test

r? libs cc @eholk @Mark-Simulacrum (for the original pr)

@rustbot rustbot assigned cuviper and unassigned estebank Jan 11, 2025
@Mark-Simulacrum
Copy link
Member

@bors r+

Seems right.

@bors
Copy link
Collaborator

bors commented Jan 11, 2025

📌 Commit df57d65 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 11, 2025
@compiler-errors
Copy link
Member

Yeah, this is definitely right. Conceptually this is like having a mutex that you can pre-reserve a read guard.

jhpratt added a commit to jhpratt/rust that referenced this pull request Jan 12, 2025
…k-Simulacrum

Make (unstable API) `UniqueRc` invariant for soundness

Add test case from rust-lang#133572 (comment) (comment in review of `UniqueArc`), and fix the issue for `UniqueRc`.
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 12, 2025
Rollup of 5 pull requests

Successful merges:

 - rust-lang#132232 (CI: build FreeBSD artifacts on FreeBSD 13.4)
 - rust-lang#135266 (Remove emsdk version update from 1.84.0 relnotes)
 - rust-lang#135364 (Cleanup `suggest_binding_for_closure_capture_self` diag in borrowck)
 - rust-lang#135375 (allow rustdoc-js tests to be run at stage0)
 - rust-lang#135379 (Make (unstable API) `UniqueRc` invariant for soundness)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 89a7282 into rust-lang:master Jan 12, 2025
6 checks passed
@rustbot rustbot added this to the 1.86.0 milestone Jan 12, 2025
@RalfJung
Copy link
Member

Do we have a corresponding test for UniqueArc?

@steffahn
Copy link
Member Author

We don’t have UniqueArc.

@RalfJung
Copy link
Member

Ah. :) I didn't realize this is an Rc-only feature.

@steffahn
Copy link
Member Author

I should have added a “…yet”. UniqueArc is not implemented yet… the PR that contains an implementation is actually where I had shared this test case originally (as linked in this PR’s description).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants